package com.maxus.mini.ecard.repository.user;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.maxus.mini.common.VersionedAuditableIdEntity;
import com.maxus.mini.ecard.entity.user.User;
import com.maxus.mini.ecard.repository.BaseRepository;

/**
 * 管理员
 * 
 * @author wujinsong
 *
 */
@Repository()
public interface UserRepository<T extends VersionedAuditableIdEntity> extends BaseRepository<User> {
	/**
	 * 根据id查询
	 * 
	 * @param openid
	 * @return
	 */
	public User findByOpenid(String openid);
	
	/**
	 * 根据id list
	 * @param idList
	 * @return
	 */
	public List<User> findByIdIn(List<Long> idList);
}
